Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Pocket AnimatorView.h

00001 // Pocket AnimatorView.h : interface of the CPocketAnimatorView class
00002 //
00004 
00005 #if !defined(AFX_POCKETANIMATORVIEW_H__6F609F8C_B846_4724_B649_14EFB380A3E1__INCLUDED_)
00006 #define AFX_POCKETANIMATORVIEW_H__6F609F8C_B846_4724_B649_14EFB380A3E1__INCLUDED_
00007 
00008 #if _MSC_VER >= 1000
00009 #pragma once
00010 #endif // _MSC_VER >= 1000
00011 
00012 class CPocketAnimatorView : public CScrollView
00013 {
00014 protected: // create from serialization only
00015         CPocketAnimatorView();
00016         DECLARE_DYNCREATE(CPocketAnimatorView)
00017 
00018 // Attributes
00019 public:
00020         CPocketAnimatorDoc* GetDocument();
00021 
00022         int frame; // viewing this frame
00023         ScreenState viewstatus; // dimensions
00024 
00025         VShape::MouseEvent currentevent;
00026 
00027         CDialog* m_pCurrentFloatBar;
00028 // Operations
00029 public:
00030 
00031 // Overrides
00032         // ClassWizard generated virtual function overrides
00033         //{{AFX_VIRTUAL(CPocketAnimatorView)
00034         public:
00035         virtual void OnDraw(CDC* pDC);  // overridden to draw this view
00036         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00037         virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
00038         protected:
00039         virtual void OnInitialUpdate(); // called first time after construct
00040         virtual BOOL OnScrollBy(CSize sizeScroll, BOOL bDoScroll = TRUE);
00041         //}}AFX_VIRTUAL
00042 
00043 // Implementation
00044 public:
00045         void DetermineSelectedShape(CPoint point, bool bScan);
00046         unsigned int GetSelectedShapeIndex();
00047         void OnFrameChanged();
00048         SIZE GetDocSize();
00049         virtual ~CPocketAnimatorView();
00050 #ifdef _DEBUG
00051         virtual void AssertValid() const;
00052         virtual void Dump(CDumpContext& dc) const;
00053 #endif
00054 
00055 protected:
00056         CDC m_dcBuf;
00057         CBitmap m_bmpBuf;
00058 
00059         CRect m_rcFrameIndicator;
00060 
00061         virtual void UpdateScreenState();
00062 
00063 // Generated message map functions
00064 protected:
00065         void UpdateScreenZoom();
00066         //{{AFX_MSG(CPocketAnimatorView)
00067         afx_msg void OnFramePrevious();
00068         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00069         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00070         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00071         afx_msg void OnFileSaveAs();
00072         afx_msg void OnToolsShapeProperties();
00073         afx_msg void OnFrameNext();
00074         afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
00075         afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00076         afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00077         afx_msg void OnToolsDeleteshape();
00078         afx_msg void OnDocProperties();
00079         afx_msg void OnShapeDuplicate();
00080         afx_msg void OnShapeBringforward();
00081         afx_msg void OnShapeSendbackward();
00082         afx_msg void OnShapeSendtoback();
00083         afx_msg void OnShapeBringtofront();
00084         afx_msg void OnToolsPreviewanimation();
00085         afx_msg void OnPolylineSimplify();
00086         //}}AFX_MSG
00087         afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
00088         afx_msg void OnSetFocus( CWnd* pOldWnd );
00089         afx_msg void OnDestroy();
00090         DECLARE_MESSAGE_MAP()
00091 };
00092 
00093 #ifndef _DEBUG  // debug version in Pocket AnimatorView.cpp
00094 inline CPocketAnimatorDoc* CPocketAnimatorView::GetDocument()
00095    { return (CPocketAnimatorDoc*)m_pDocument; }
00096 #endif
00097 
00099 
00100 //{{AFX_INSERT_LOCATION}}
00101 // Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
00102 
00103 #endif // !defined(AFX_POCKETANIMATORVIEW_H__6F609F8C_B846_4724_B649_14EFB380A3E1__INCLUDED_)

Generated at Wed Aug 29 19:58:55 2001 for Pocket Animator by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001